package org.peoplesearch.vk.processor;

import org.peoplesearch.vk.api.androidvksdk.Api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* Created by IntelliJ IDEA.
* User: niyaz
* Date: 8/17/12
* Time: 5:39 PM
* To change this template use File | Settings | File Templates.
*/
public abstract class VkCommand {
    protected Credentials.VKAuthCredential credential;
    protected Api api;
    protected Logger logger = LoggerFactory.getLogger(VkCommand.class);

    public void init(Credentials.VKAuthCredential credential) {
        this.credential = credential;
        api = new Api(credential.token, credential.applicationId);

    }

    public abstract void run();
}
